import { getAcctDet } from "@/static/js/law.js";
export default {
  data() {
    return {
      details: null,
      fontSize: "28rpx",
    };
  },
  methods: {
    //获取详细信息
    getInfo(id) {
      uni.showToast({
        title: "加载中",
        icon: "loading",
      });
      getAcctDet({ id: id })
        .then((res) => {
          uni.hideLoading();
          if (res.code == 1) {
            this.details = res.data;
          } else {
            this.$tools.showToast(res.msg);
          }
        })
        .catch((err) => {
          console.log("错误回调", err);
        });
    },
  },
  computed: {

  },
  onLoad(e) {
    this.getInfo(e.id);
  },
};